<?php
require_once 'global.php';

$view = 'forum/forum.html';

if ($_SERVER['PATH_INFO']) {
    $data = explode("/", $_SERVER['PATH_INFO']);
    $_REQUEST['id']     = $data[1];
    $_REQUEST['tid']    = $data[2];

    if ($_REQUEST['tid']) {
        if($_REQUEST['tid']=='new')
            $view = 'forum/newtopic.html';
        elseif(intval($_REQUEST['tid']))
            $view = 'forum/topic.html';
    }
}

$Controller =& getController('forum');
$View = $Controller->getView('forum');
$View->display($view);
?>